package project1;

public class Cards {
	public static void main(String[] args) {
		int[] poker = new int[52];
		String[] suits = { "Spades", "Hearts", "Diamonds", "Clubs" };
		String[] ranks = { "Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Joker", "Queen", "King" };
		for (int i = 0; i < poker.length; i++)
			poker[i] = i;
		for (int i = 0; i < poker.length; i++) {
			int index = (int)(Math.random() * poker.length);
			int temp = poker[i];
			poker[i] = poker[index];
			poker[index] = temp;
		}
		for (int i = 0; i < 4; i++) {
			String suit = suits[poker[i] / 13];
			String rank = ranks[poker[i] % 13];
			System.out.println
			("Poker number" + poker[i] +":"+  rank  + suit);
		}
	}
}
